<?php
  $path = S_ROOT.'/company/';
  if(!empty($_GET['user']))
{
    $last_word = $_GET['user'];
}
 else {
     $last_word;
}
$cat_id = mysql_query("SELECT cat_id FROM tbluser AS iduser
    INNER JOIN tblpharmacy AS com ON iduser.id= com.user_id
    WHERE com.shorturl='$last_word'");
    $cat_id_get = mysql_fetch_assoc($cat_id);
    $seller_cat = $cat_id_get['cat_id'];
?>
<?php
 include(S_ROOT.'/company/header_top.php');?>
<body> 

<a name="top"></a>
<?php include(S_ROOT.'/company/header.php');?>

<div class="<?php if($pageURL==$homepage){ ?>home_page<?php } else {echo 'not_home';}?>">
<div style="height:20px; clear:both"></div>

<!-- content -->  
  
  <!-- First Band (Image) -->
    
  <div class="row">
    <div class="twelve columns">
      <!--
for slide
-->
    </div>
  </div>
  
  
  <!-- Second Band (Image Left with Text) -->
  <!-- Third Band (Image Right with Text) -->
  
  <div class="row">
<?php
if(!empty($urlb))
{
    if($urlb[1]=='onecolums')
    {
        echo '<div class="twelve columns">';
    }
}
    else
    {
        echo '<div class="eight columns">';
    }
?>          
        <?php       

                            $p=isset($suba)?$suba:"latest";						
                            $page=$path.$p.".php";
                            require_once($page);       
        ?>  
        <div class="clear"></div>  
    </div>
<?php
if(!empty($urlb))
{
if($urlb[1]=='onecolums')
{
}
}
else
{
?>
    <div class="four columns">

            <?php       
				if(preg_match("/seller/", $_SERVER['PHP_SELF'])){
				include(S_ROOT.'/seller/left.php');
				}else if(preg_match("/buyer/", $_SERVER['PHP_SELF'])){
				include(S_ROOT.'/buyer/left.php');
				}
            ?>  

             <?php
               include(S_ROOT.'/company/browser.php');
             ?> 	
             <?php
			include(S_ROOT.'/includefiles/banner_ads_left.php');
			
            ?>
    </div>
<?php      
}
?>      
  </div>
<!-- end content -->

</div><!--End Home page -->   
</div> 
</div>
<div class="clear"></div>
<?php include(S_ROOT.'/includefiles/bottom_company.php');?>
  <!-- Included JS Files (Compressed) -->
  
  <!-- Initialize JS Plugins -->
    <script src="<?php echo W_ROOT;?>/templates/javascripts/bootstrap-dropdown.js"></script>
    <script src="<?php echo W_ROOT;?>/templates/javascripts/app.js"></script>        
</body>
</html>
<?php exit;?>